#ifndef NULL
#define NULL 0
#endif

#ifdef __WXMAC__
#import <CoreAudio/CoreAudio.h>
#import <CoreMIDI/CoreMIDI.h>
#endif
#ifdef __WXMSW__
	#include <windows.h>
	#include <mmsystem.h>
#endif
class MidiIn {
	
public:
	static void* midiIn;
	MidiIn();
	virtual void midiReceived(int note, int velocity) = 0;
private:
#ifdef __WXMAC__
	MIDIClientRef client;
	MIDIPortRef inPort;
#endif

#ifdef __WXMSW__
	HMIDIIN device;
	union {
		unsigned long word;
		unsigned char data[4];
	} message;
#endif
		
};
